package cn.lxg.dao;

import cn.lxg.pojo.TNovelGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface INovelGroupDao {
    /* 根据ID查 */
    TNovelGroup findById(@Param(value = "id") Integer id);

    /* 查数据总量 */
    int countDataLine(@Param(value = "novelGroup") TNovelGroup novelGroup);

    /* 查数据 */
    List<TNovelGroup> select(@Param(value = "limitStart") Integer limitStart, @Param(value = "limitEnd") Integer limitEnd, @Param(value = "novelGroup") TNovelGroup novelGroup);

    /* 插入新的 */
    boolean insert(@Param(value = "novelGroup") TNovelGroup novelGroup);

    /* 根据ID删除 */
    boolean deleteById(@Param(value = "id") Integer id);

    /* 根据ID更新 */
    boolean updateById(@Param(value = "novelGroup") TNovelGroup novelGroup);
}
